<?php

$objRegistro  =  $objConn->Execute("SELECT *,DATE_FORMAT(dt_cadastro,'%d/%m/%Y %H:%i') as dt_informativo  from tbl_rh_consultoria where st_status='S' ORDER BY dt_cadastro DESC LIMIT 1" );

if( $objError->semErros() )
{
    
	while( !$objRegistro->EOF ) {
?>
	<div class="materia">
		<p>Publicado em <?php echo ( $objRegistro->fields['dt_informativo'] ); ?></p>
		<p class="entry-title"><?php echo ( $objRegistro->fields['no_titulo'] ); ?></p>
		<?php if ( $objRegistro->fields['no_foto'] != '' ) { ?>
		    <div class="foto componente_materia midia-largura-300">
		        <img src="imagemSite/<?php echo ( $objRegistro->fields['no_foto'] ) ; ?>"  >
		        <?php if ( $objRegistro->fields['ds_foto'] != '' ) { ?>
			        <strong>
			        	<?php echo ( $objRegistro->fields['ds_foto'] ) ; ?>
			        </strong>
			    <?php } ?>    
		    </div>
	    <?php } ?>
	   
	   <?php echo ( $objRegistro->fields['ds_conteudo'] ); ?> 
	       
	</div>

<?php	
	$objRegistro->MoveNext();
	
	}	
}	
?>